<%
	answer = report_response.answer_or_default(question) 
	role = report_response.owner_role	
	question_by_role = question.for_role(role)
%>

<div class="<%= 'question' unless question.is_option %> <%= question.kind %>">
	<div class="question_text">
		<%= question.code%> <%= _(question.text_for(report_response.owner_role)) %>
	</div><br/>
    
	<% form.fields_for :answers, answer do |af| %>
	  	<%= render :partial => "question_#{question.kind}_form",
				 :object => question, 
				 :as => :question, 
				 :locals => {:form => af, 
							:answer => answer, 
							:report_response => @report_response,
							:response_form => form }  %>
	<% end %>
</div>